package com.bokee.archerwq.lab.thread;

public class ResponsiveUI extends Thread {

	private static double d = 1;

	public ResponsiveUI() {
		setDaemon(true);
		start();
	}

	@Override
	public void run() {
		while (true) {
			d = d + (Math.PI + Math.E) / d;
		}
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception {
		new ResponsiveUI();
		Thread.sleep(300);
		while (System.in.read() > 0) {
			System.out.println(d);
			return;
		}
	}

}
